package top.caoayu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.caoayu.finance.FinanceClient;
import top.caoayu.finance.tiancai.FinanceClientServiceImpl;

import javax.annotation.Resource;

@RestController
@RequestMapping("/")
public class Home {
//    @Resource
//    private FinanceClient financeClient;
    @Resource
    private FinanceClientServiceImpl financeClientService;
    @GetMapping("/home")
    public String home(){
        financeClientService.getFundsCard("0002012056");
        return "home";
//        return financeClient.getFinanceService("tiancai").getFinanceInfo();
    }
}
